import { createRouter, createWebHashHistory, createWebHistory } from 'vue-router'

import Index from "/src/views/index.vue"
import home from "/src/views/home/index.vue"
import building from "/src/views/building/index.vue"
let router = createRouter({
    history: createWebHistory(),
    routes:[
        {
            path: '/',
            component: Index,
            redirect:'/home',
            children: [
                {
                    path: '/',
                    name: "home",
                    component: home
                },
                {
                    path: '/building',
                    name: "building",
                    component: building
                }
            ]
        }
    ]
})

export default router
